program smart;

uses
  Windows,
  Sysutils,
  VirtualTree_Editor in '..\..\..\..\devdcomps\virtualtree\VirtualTree_Editor.pas',
  VirtualTrees in '..\..\..\..\devdcomps\virtualtree\VirtualTrees.pas',
  GR32_Image in '..\..\..\..\devdcomps\graphics32\Source\GR32_Image.pas',
  SQLite3Wrap in '..\..\..\..\devdcomps\sqlite\SQLite3Wrap.pas',
  SQLite3 in '..\..\..\..\devdcomps\sqlite\SQLite3.pas',
  SQLite3Utils in '..\..\..\..\devdcomps\sqlite\SQLite3Utils.pas',  
  QuickList_Int in '..\..\..\..\devwintech\comps\list\QuickList_Int.pas',
  QuickList_double in '..\..\..\..\devwintech\comps\list\QuickList_double.pas',
  WinSock2 in '..\..\..\..\devwintech\common\WinSock2.pas',
  windef_msg in '..\..\..\..\devwintech\v0001\windef\windef_msg.pas',
  sysdef_string in '..\..\..\..\devwintech\v0001\sysdef\sysdef_string.pas',
  base.thread in '..\..\..\..\devwintech\v0001\rec\app_base\base.thread.pas',
  win.process in '..\..\..\..\devwintech\v0001\rec\win_sys\win.process.pas',
  win.wnd_cmd in '..\..\..\..\devwintech\v0001\rec\win_sys\win.wnd_cmd.pas',
  base.run in '..\..\..\..\devwintech\v0001\rec\app_base\base.run.pas',
  win.app in '..\..\..\..\devwintech\v0001\rec\win_app\win.app.pas',
  win.thread in '..\..\..\..\devwintech\v0001\rec\win_sys\win.thread.pas',
  BasePath in '..\..\..\devwintech\v0001\app_base\BasePath.pas',
  BaseApp in '..\..\..\devwintech\v0001\app_base\BaseApp.pas',
  BaseThread in '..\..\..\devwintech\v0001\app_base\BaseThread.pas',
  BaseFile in '..\..\..\devwintech\v0001\app_base\BaseFile.pas',
  BaseDataSet in '..\..\..\devwintech\v0001\app_base\BaseDataSet.pas',
  BaseWinApp in '..\..\..\devwintech\v0001\win_app\BaseWinApp.pas',
  BaseWinFormApp in '..\..\..\devwintech\v0001\win_app\BaseWinFormApp.pas',
  BaseForm in '..\..\..\devwintech\v0001\win_uiform\BaseForm.pas' {frmBase},
  BaseFrame in '..\..\..\devwintech\v0001\win_uiform\BaseFrame.pas' {fmeBase: TFrame},
  win.shutdown in '..\..\..\..\devwintech\v0001\winproc\win.shutdown.pas',
  BaseWinFile in '..\..\..\..\devwintech\v0000\win_base\BaseWinFile.pas',
  win.iobuffer in '..\..\..\..\devwintech\v0000\win_data\win.iobuffer.pas',
  xlNetwork in '..\..\..\..\devwintech\v0000\win_net\xlNetwork.pas',
  xlTcpClient in '..\..\..\..\devwintech\v0000\win_netclient\xlTcpClient.pas',
  xlClientSocket in '..\..\..\..\devwintech\v0000\win_netclient\xlClientSocket.pas',
  UtilsLog in '..\..\utils\UtilsLog.pas',
  db_dealitem in '..\..\dealitem\db_dealitem.pas',
  db_dealitem_load in '..\..\dealitem\db_dealitem_load.pas',
  db_dealclass in '..\..\dealitem\db_dealclass.pas',
  db_dealclass_save in '..\..\dealitem\db_dealclass_save.pas',
  db_dealclass_load in '..\..\dealitem\db_dealclass_load.pas',
  DealItemsTreeView in '..\..\..\..\devstock\stockview\DealItemsTreeView.pas',
  BaseStockFormApp in '..\..\base\BaseStockFormApp.pas',
  StockAppPath in '..\..\base\StockAppPath.pas',
  define_tablefield in '..\..\define\define_tablefield.pas',
  define_datasrc in '..\..\define\define_datasrc.pas',
  define_datetime in '..\..\define\define_datetime.pas',
  define_dealitem in '..\..\define\define_dealitem.pas',
  define_deal in '..\..\define\define_deal.pas',
  define_price in '..\..\define\define_price.pas',
  define_stock_quotes in '..\..\define\define_stock_quotes.pas',
  define_dealstore_file in '..\..\define\define_dealstore_file.pas',
  define_dealstore_header in '..\..\define\define_dealstore_header.pas',
  define_stockapp in '..\..\define\define_stockapp.pas',
  define_dealmarket in '..\..\define\define_dealmarket.pas',
  define_message in '..\..\define\define_message.pas',
  define_stock_quotes_instant in '..\..\define\define_stock_quotes_instant.pas',
  DB_Stock in '..\..\data_stock\DB_Stock.pas',
  DB_Quote_Instant_Refresh in '..\..\data_stock\DB_Quote_Instant_Refresh.pas',
  DB_Quote_Instant in '..\..\data_stock\DB_Quote_Instant.pas',
  StockDayDataAccess in '..\..\data_stock\StockDayDataAccess.pas',
  StockDayData_Load in '..\..\data_stock\StockDayData_Load.pas',
  StockMinuteDataAccess in '..\..\data_stock\StockMinuteDataAccess.pas',
  StockMinuteData_Load in '..\..\data_stock\StockMinuteData_Load.pas',
  StockDetailDataAccess in '..\..\data_stock\StockDetailDataAccess.pas',
  StockDetailData_Load in '..\..\data_stock\StockDetailData_Load.pas',
  StockInstantData_Get_Sina in '..\..\data_stock\datasrc_sina\StockInstantData_Get_Sina.pas',
  define_zsprocess in '..\..\dealagent\define_zsprocess.pas',
  utils_zs_agentconsole in '..\..\dealagent\utils_zs_agentconsole.pas',
  UtilsParentProcess in '..\..\Utils\UtilsParentProcess.pas',
  WStrings in '..\..\Utils\WStrings.pas',
  UtilsDateTime in '..\..\utils\UtilsDateTime.pas',
  UtilsListView in '..\..\utils\UtilsListView.pas',
  UtilsHttp in '..\..\Utils\UtilsHttp.pas',
  UtilsHttp_Socket in '..\..\Utils\UtilsHttp_Socket.pas',
  QuickSortList in '..\..\Utils\QuickSortList.pas',
  QuickList_DealItem in '..\..\Utils\QuickList_DealItem.pas',
  QuickList_DealClass in '..\..\Utils\QuickList_DealClass.pas',
  QuickList_QuoteInstant in '..\..\Utils\QuickList_QuoteInstant.pas',
  QuickList_DayData in '..\..\Utils\QuickList_DayData.pas',
  QuickList_MinuteData in '..\..\Utils\QuickList_MinuteData.pas',
  QuickList_DetailData in '..\..\Utils\QuickList_DetailData.pas',
  BaseRule in '..\..\rule\BaseRule.pas',
  BaseRuleData in '..\..\rule\BaseRuleData.pas',
  StockRule in '..\..\rule\StockRule.pas',
  Rule_STD in '..\..\rule\Rule_STD.pas',
  Rule_MA in '..\..\rule\Rule_MA.pas',
  Rule_LLV in '..\..\rule\Rule_LLV.pas',
  Rule_HHV in '..\..\rule\Rule_HHV.pas',
  Rule_EMA in '..\..\rule\Rule_EMA.pas',
  RuleEx_CYHT in '..\..\rule\RuleEx_CYHT.pas',
  RuleEx_BDZX in '..\..\rule\RuleEx_BDZX.pas',
  RuleEx_BIAS in '..\..\rule\RuleEx_BIAS.pas',
  RuleEx_MACD in '..\..\rule\RuleEx_MACD.pas',
  RuleEx_Boll in '..\..\rule\RuleEx_Boll.pas',
  RuleStock_1272 in '..\..\rulestock\RuleStock_1272.pas',
  RuleStock_BOll in '..\..\rulestock\RuleStock_BOll.pas',
  Strategy_CYHT in 'Strategy\Strategy_CYHT.pas',
  Strategy_1272 in 'Strategy\Strategy_1272.pas',
  Strategy_Macro_Index in 'Strategy\Strategy_Macro_Index.pas',
  Strategy_FundsAllocation in 'Strategy\Strategy_FundsAllocation.pas',
  Strategy_AmountRate in 'Strategy\Strategy_AmountRate.pas',
  Strategy_Boll in 'Strategy\Strategy_Boll.pas',
  Strategy_Time in 'Strategy\Strategy_Time.pas',
  Strategy_BDZX in 'Strategy\Strategy_BDZX.pas',
  SDFrameDealItemViewer in 'frame\SDFrameDealItemViewer.pas' {fmeDealItemViewer: TFrame},
  SDFrameTest in 'frame\SDFrameTest.pas' {fmeTest: TFrame},
  SDFrameDealConsole in 'frame\SDFrameDealConsole.pas' {fmeDealConsole: TFrame},
  SDFrameBaseDealItem in 'frame\SDFrameBaseDealItem.pas' {fmeBaseStockItem: TFrame},
  SDFrameGraph in 'frame\SDFrameGraph.pas' {fmeStockGraph: TFrame},
  SDFrameGraphM in 'frame\SDFrameGraphM.pas' {fmeStockGraphM: TFrame},
  DecisionMaker in 'Decision\DecisionMaker.pas',
  Manager_Deal in 'Decision\Manager_Deal.pas',
  Manager_PubInfo in 'Decision\Manager_PubInfo.pas',
  Manager_Strategy in 'Decision\Manager_Strategy.pas',
  Manager_DealObject in 'Decision\Manager_DealObject.pas',
  Manager_Quotation in 'Decision\Manager_Quotation.pas',
  Manager_Asset in 'Decision\Manager_Asset.pas',
  Manager_Busi in 'Decision\Manager_Busi.pas',
  StockChart in 'StockChart\StockChart.pas',
  StockChart_Boll in 'StockChart\StockChart_Boll.pas',
  StockChart_Price in 'StockChart\StockChart_Price.pas',
  StockChart_1272 in 'StockChart\StockChart_1272.pas',
  StockChart_CYHT in 'StockChart\StockChart_CYHT.pas',
  StockChart_BDZX in 'StockChart\StockChart_BDZX.pas',
  smartStockApp in 'smartStockApp.pas',
  smartStockConsoleForm in 'smartStockConsoleForm.pas' {frmSDConsole},
  smartStockConsoleApp in 'smartStockConsoleApp.pas',
  baseSmart in 'baseSmart.pas';

{$R *.res}

var
  GlobalApp: TStockSmartApp = nil;
begin
  GlobalApp := TStockSmartApp.Create('TStockSmartApp');
  try
    if GlobalApp.Initialize then
      GlobalApp.Run;
    GlobalApp.RunStatus := RunStatus_RequestShutdown;  
    //Log('StockData.dpr', 'RequestShutdown');
    GlobalApp.Finalize;
    //Log('StockData.dpr', 'Finalize');    
  finally         
    GlobalApp.RunStatus := RunStatus_Shutdown;
    GlobalApp.Free;
  end;                                    
  //Log('StockData.dpr', 'App End');   
end.
